package com.fegin.file;

import com.alibaba.nacos.api.model.v2.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: stefanie-zy
 * @time: 2024/1/29-15:09
 * @description: Fegin-文件
 */
@FeignClient(name = "stefanie-file", url = "http://stefanie-file")
public interface FileService {

    /**
     * 获取用户默认头像
     * @param userName 用户名称
     * @return 头像地址
     */
    @GetMapping(value = "/api-file/user-ico/{userName}")
    Result<?> getUserIcoUrl(@PathVariable String userName);
}
